package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.feign.fallback.OrderFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 订单远程服务
 *
 * @author xiaoping
 * @create 2020/7/9 17:15
 * @since 1.0.0
 */
@FeignClient(value = "gulimall-order",fallback = OrderFeignServiceFallBack.class)
public interface OrderFeignService {

    /**
     * 获取会员订单列表
     */
    @PostMapping("/order/order/listWithItem")
    R listWithItem(@RequestBody Map<String, Object> params);

}
